package com.aoxon.cargo.service;

import java.util.HashMap;

import com.aoxon.cargo.bean.GsonBean;
import com.aoxon.cargo.bean.Supplier;
import com.google.gson.Gson;

/**
 * 注册页面的网络服务
 * 
 * @author ZZJ
 * 
 */
public class RegisterSupplierService extends MyService {

	/**
	 * 提交注册数据
	 * 
	 * @param supplier
	 * @return
	 */
	public GsonBean execute(Supplier supplier) {

		url = "register" + suffix;

		params = new HashMap<String, String>();
		params.put("register", new Gson().toJson(supplier));

		return doPost();

	}

}
